package com.xucy.springboot.designmodel.behavioral.chain;

/**
 * @Author xucy
 * @Date 2019-10-23 17:50
 * @Description 责任链模式
 **/

public class Test {

    public static void main(String[] args) {
        BaseFilter oneFilter=new OneFilter(true);
        BaseFilter twoFilter=new TwoFilter(true);
        oneFilter.nextFilter(twoFilter);

        oneFilter.doSomeThing();
    }
}
